package com.moba.controller;

import com.alibaba.fastjson.JSONObject;
import com.moba.domain.SysSetting;
import com.moba.emums.orderInfo.OrderState;
import com.moba.service.SysSettingService;
import com.moba.utils.FieldFilter;
import com.moba.utils.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.util.WebUtils;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
import java.util.Map;

/**
 * @author ding, ning
 * @version 2019-03-11 09:19
 * @date 2019-03-11 09:19
 */
@RestController
@RequestMapping("/index")
@Api(value = "app")
public class IndexController extends BaseController {

//    @Resource
//    OrderInfoService orderInfoService;
//
//    @ApiOperation(value = "app首页")
//    @GetMapping(value = "/appIndex")
//    public Object index(HttpServletRequest request) {
//
//        JSONObject jsonObject = new JSONObject();
//
//        OrderInfo entity = new OrderInfo();
//        entity.setOrderState(OrderState.ORDER_STATE_0.getIndex());
//        entity.getRow().setCount(20);
//        entity.getRow().setFirst(0);
//        List<OrderInfo> entityList = orderInfoService.getEntityPaginatedList(entity);
//        jsonObject.put("entityList", entityList);
//
//        return ResultUtils.success(jsonObject);
//    }
}